<?php
	ob_start();
	session_start();
	include("../config.php");
	include("function.php");

	date_default_timezone_set('Europe/Sofia');
	
	if(empty($_SESSION['admin_user_id'])){
		header('Location: logout.php');
	}

	// Session expire
//	$now = time();
//
//	if($now > $_SESSION['expire'])
//		header('Location: logout.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<title>Администраторски панел - АУТО ХИТ оод</title>
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

			<link rel="shortcut icon" href="images/favicon.ico">

			<!-- CSS -->
			<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
			<link rel="stylesheet" type="text/css" href="css/default.css" />

			<!-- CSS Warning message -->
			<link rel="stylesheet" type="text/css" href="css/warning_message.css" />

			<!-- Javascript -->
			<script type="text/javascript" src="js/scripts.js"></script>
		</head>
		<body>
		<?php require_once("top.php"); ?>
